using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Middleware;
using System.Threading;
using Middleware.Naming;

namespace Calculator.Client {
    class Program {
        static void Main(string[] args) {

            NamingStub naming = new NamingStub();

            ICalculator calc = naming.Lookup("Calculator") as ICalculator;

            for (int i = 0; i < 2000; i++) {
                Console.WriteLine("1 + {0} + 10 = {1}", i, calc.Sum(1, i, 10));
            }

            Console.ReadKey();
        }
    }
}
